package ru.onlinestore.mobile.ui.navigation.mainNavigation

import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import ru.onlinestore.mobile.ui.authentication.AuthenticationChoiceScreen
import ru.onlinestore.mobile.ui.authentication.authorization.AuthorizationScreen
import ru.onlinestore.mobile.ui.authentication.registration.RegistrationScreen

@Composable
fun MainNavigationGraph(controller: NavHostController) =
    NavHost(
        navController = controller,
        startDestination = "authentication",
        builder = {
            composable(
                route = "authentication",
                content = { AuthenticationChoiceScreen() }
            )
            composable(
                route = "authorization",
                content = { AuthorizationScreen() }
            )

            composable(
                route = "registration",
                content = { RegistrationScreen() }
            )
        }
    )